<?php
/**
 * Created by PhpStorm.
 * User: shwy
 * Date: 2017/5/16
 * Time: 15:47
 */
class User_model extends Base_Model 
{
    protected $mTable = 'user';
	
	// 根据输入用户名来查询后台用户数据
	public function findUser($username) 
	{
		$row = $this->db->get_where('user', array('username' => $username))->row_array();
		return $row;
	}

}